//
//  TestViewController.m
//  DMT_VR
//
//  Created by xin on 2016/10/31.
//  Copyright © 2016年 Elephant-Parade. All rights reserved.
//

#import "TestViewController.h"
#import "MyPlayProgressView.h"

@interface TestViewController () <MyPlayProgressViewDelegate>
@property (weak, nonatomic) IBOutlet MyPlayProgressView *slider;

@end

@implementation TestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    _slider.delegate = self;
    _slider.playProgressBackgoundColor = [UIColor redColor];
    //    _slider.trackBackgoundColor = [UIColor colorWithRed:1 green:1 blue:1 alpha:0.7];
    _slider.progressBackgoundColor = [UIColor colorWithRed:1 green:1 blue:1 alpha:0.7];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

// 开始拖动
- (void)beiginSliderScrubbing;
{}
// 结束拖动
- (void)endSliderScrubbing;
{}
// 拖动值发生改变
- (void)sliderScrubbing;
{
    NSLog(@"value=%f",_slider.value);
}

#pragma mark - 屏幕方向

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscape;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationLandscapeRight;
}

- (BOOL)shouldAutorotate{
    return YES;
}

#pragma mark - 状态栏
//设置样式
- (UIStatusBarStyle)preferredStatusBarStyle {
    return UIStatusBarStyleLightContent;
}

//设置是否隐藏
- (BOOL)prefersStatusBarHidden {
    //    [super prefersStatusBarHidden];
    return YES;
}

//设置隐藏动画
- (UIStatusBarAnimation)preferredStatusBarUpdateAnimation {
    return UIStatusBarAnimationNone;
}


@end
